<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div{
				display: none;
			}
		</style>
		<script src="../js/jquery-3.4.1.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("h1").html("hello ,jq");
				var d=$("div:hidden");
				alert(d.length);
				d.show();//迭代
				$("ul li:gt(3)").css("background-color","green");
				//链式操作
				$("ul li:contains(子)").css("font-size","40px").css("border","2px solid red");
			});
		</script>
	</head>
	<body>
		<h1></h1>
		<div>1</div>
		<div>2</div>
		<div>3</div>
		<div>4</div>
		<ul>
			<li>苹果</li>
			<li>桃子</li>
			<li>橡胶</li>
			<li>西红柿</li>
			<li>柿子</li>
			<li>梨子</li>
			<li>核桃</li>
			
		</ul>
	</body>
</html>
